package com.github.catvod.spider.merge;

public class KY {
  private int V0 = 0;
  
  private String h;
  
  public KY(String paramString) {
    R2.u(paramString);
    this.h = paramString;
  }
  
  private int PD() {
    return this.h.length() - this.V0;
  }
  
  public static String j5(String paramString) {
    StringBuilder stringBuilder = ZG.V0();
    char[] arrayOfChar = paramString.toCharArray();
    int i = arrayOfChar.length;
    byte b = 0;
    for (char c = Character.MIN_VALUE; b < i; c = c1) {
      char c1 = arrayOfChar[b];
      if (c1 == '\\') {
        if (c == '\\')
          stringBuilder.append(c1); 
      } else {
        stringBuilder.append(c1);
      } 
      b++;
    } 
    return ZG.t(stringBuilder);
  }
  
  public String BQ(String paramString) {
    int i = this.h.indexOf(paramString, this.V0);
    if (i != -1) {
      paramString = this.h.substring(this.V0, i);
      this.V0 += paramString.length();
      return paramString;
    } 
    return y();
  }
  
  public boolean F8(String paramString) {
    return this.h.regionMatches(true, this.V0, paramString, 0, paramString.length());
  }
  
  public String I() {
    int i = this.V0;
    while (!Qy() && (i4() || t(new char[] { '-', '_' })))
      this.V0++; 
    return this.h.substring(i, this.V0);
  }
  
  public boolean Qy() {
    boolean bool;
    if (PD() == 0) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  public String V0(String paramString) {
    String str = BQ(paramString);
    oq(paramString);
    return str;
  }
  
  public String W(String... paramVarArgs) {
    int i = this.V0;
    while (!Qy() && !n(paramVarArgs))
      this.V0++; 
    return this.h.substring(i, this.V0);
  }
  
  public String h(char paramChar1, char paramChar2) {
    Object object1;
    Object object2;
    Object object3;
    String str;
    boolean bool4 = false;
    boolean bool3 = false;
    boolean bool1 = false;
    boolean bool2 = false;
    byte b2 = -1;
    byte b1 = -1;
    while (true) {
      while (true)
        break; 
      if (SYNTHETIC_LOCAL_VARIABLE_8 <= null) {
        object1 = SYNTHETIC_LOCAL_VARIABLE_14;
        object2 = SYNTHETIC_LOCAL_VARIABLE_13;
        object3 = SYNTHETIC_LOCAL_VARIABLE_8;
        break;
      } 
    } 
    if (object1 >= null) {
      str = this.h.substring(object2, object1);
    } else {
      str = "";
    } 
    if (object3 > null) {
      StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append("Did not find balanced marker at '");
      stringBuilder.append(str);
      stringBuilder.append("'");
      R2.h(stringBuilder.toString());
    } 
    return str;
  }
  
  public boolean i4() {
    boolean bool;
    if (!Qy() && Character.isLetterOrDigit(this.h.charAt(this.V0))) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  public boolean iU() {
    boolean bool;
    if (!Qy() && ZG.u(this.h.charAt(this.V0))) {
      bool = true;
    } else {
      bool = false;
    } 
    return bool;
  }
  
  public char j() {
    String str = this.h;
    int i = this.V0;
    this.V0 = i + 1;
    return str.charAt(i);
  }
  
  public boolean n(String... paramVarArgs) {
    int i = paramVarArgs.length;
    for (byte b = 0; b < i; b++) {
      if (F8(paramVarArgs[b]))
        return true; 
    } 
    return false;
  }
  
  public String oC() {
    int i = this.V0;
    while (!Qy() && (i4() || n(new String[] { "*|", "|", "_", "-" })))
      this.V0++; 
    return this.h.substring(i, this.V0);
  }
  
  public boolean oq(String paramString) {
    if (F8(paramString)) {
      this.V0 += paramString.length();
      return true;
    } 
    return false;
  }
  
  public void q(String paramString) {
    if (F8(paramString)) {
      int i = paramString.length();
      if (i <= PD()) {
        this.V0 += i;
        return;
      } 
      throw new IllegalStateException("Queue not long enough to consume sequence");
    } 
    throw new IllegalStateException("Queue did not match expected sequence");
  }
  
  public boolean t(char... paramVarArgs) {
    if (Qy())
      return false; 
    int i = paramVarArgs.length;
    for (byte b = 0; b < i; b++) {
      char c = paramVarArgs[b];
      if (this.h.charAt(this.V0) == c)
        return true; 
    } 
    return false;
  }
  
  public String toString() {
    return this.h.substring(this.V0);
  }
  
  public boolean u() {
    boolean bool;
    for (bool = false; iU(); bool = true)
      this.V0++; 
    return bool;
  }
  
  public String y() {
    String str = this.h.substring(this.V0);
    this.V0 = this.h.length();
    return str;
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/KY.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */